#include "user_uart3.h"
uint8_t cmd20[] = {//一键发送重量
0xAA,0x01,0x20,0xCB,0x2F,
    0x00   // 终止符
};
uint8_t cmd21_GW[] = {//取毛重
0xAA,0x02,0x21,0x00,0xCD,0x2F,
    0x00   // 终止符
};
uint8_t cmd21_NW[] = {//取净重
0xAA,0x02,0x21,0x01,0xCE,0x2F,
    0x00   // 终止符
};

uint8_t cmd22[] = {//去皮
0xAA,0x01,0x22,0xCD,0x2F,
    0x00   // 终止符
};
uint8_t cmd23[] = {//回皮（取皮重）
0xAA,0x01,0x23,0xCE,0x2F,
    0x00   // 终止符
};
uint8_t cmd24[] = {//置零
0xAA,0x01,0x24,0xCF,0x2F,
    0x00   // 终止符
};

uint8_t cmd25[] = {//主动上传	0X25——上传键值及参数,略
0xAA,0x01,0x20,0xCB,0x2F,0xAA,0x01,0x20,0xCB,0x2F,0xAA,0x01,0x20,0xCB,0x2F,
    0x00   // 终止符
};
uint8_t cmd26[] = {//0X26——单价下发;略
0xAA,0x01,0x20,0xCB,0x2F,
    0x00   // 终止符
};
uint8_t cmd27[] = {//0X27——上传净重+单价+电压+充电状态+称重状态
0xAA,0x01,0x27,0xD2,0x2F,
    0x00   // 终止符
};
uint8_t cmd28[] = {//0X28——上传内码信息
0xAA,0x01,0x28,0xD3,0x2F,
    0x00   // 终止符
}; 
uint8_t cmd29[] = {//校准参数下发,略
0xAA,0x01,0x28,0xD3,0x2F,0xAA,0x01,0x28,0xD3,0x2F,
0xAA,0x01,0x28,0xD3,0x2F,
    0x00   // 终止符
};


// 定义一个名为 send_command_0x20 的函数，用于发送特定的命令
void send_command_0x20(void)
{
    Serial_Send_String(cmd20);
}
// 导出函数为命令
MSH_CMD_EXPORT(send_command_0x20, CMD1_OPEN);

void send_command_0x21_GW(void)
{
    Serial_Send_String(cmd21_GW);
}
// 导出函数为命令
MSH_CMD_EXPORT(send_command_0x21_GW, cmd21_GW);


void send_command_0x21_NW(void)
{
    Serial_Send_String(cmd21_NW);
}
// 导出函数为命令
MSH_CMD_EXPORT(send_command_0x21_NW, cmd21_NW);

void send_command_0x22(void)
{
    Serial_Send_String(cmd22);
}
// 导出函数为命令
MSH_CMD_EXPORT(send_command_0x22, cmd22);

void send_command_0x23(void)
{
    Serial_Send_String(cmd23);
}
// 导出函数为命令
MSH_CMD_EXPORT(send_command_0x23, cmd23);

void send_command_0x24(void)
{
    Serial_Send_String(cmd24);
}
// 导出函数为命令
MSH_CMD_EXPORT(send_command_0x24, cmd24);
void send_command_0x25(void)
{
    Serial_Send_String(cmd25);
}
// 导出函数为命令
MSH_CMD_EXPORT(send_command_0x25, cmd25);
void send_command_0x26(void)
{
    Serial_Send_String(cmd26);
}
// 导出函数为命令
MSH_CMD_EXPORT(send_command_0x26, cmd26);
void send_command_0x27(void)
{
    Serial_Send_String(cmd27);
}
// 导出函数为命令
MSH_CMD_EXPORT(send_command_0x27, cmd27);
void send_command_0x28(void)
{
    Serial_Send_String(cmd28);
}
// 导出函数为命令
MSH_CMD_EXPORT(send_command_0x28, cmd28);
void send_command_0x29(void)
{
    Serial_Send_String(cmd29);
}
// 导出函数为命令
MSH_CMD_EXPORT(send_command_0x29, cmd29);